import App from './App'
import Util from './common/util.js'
import Http from './common/http.js'
import thisConfig from './common/config.js'
import store from './store'
import {toLogin} from './common/login.js';
import typeData from './common/typeConfig.js';


Vue.prototype.$util = Util;
Vue.prototype.$http = Http;
Vue.prototype.$config = thisConfig;
Vue.prototype.$store = store;
Vue.prototype.$toLogin = toLogin;
Vue.prototype.$typeData = typeData;
Vue.prototype.$typeList = typeData.typeList;
Vue.prototype.$minFormType = typeData.minFormType;

// #ifndef VUE3
import Vue from 'vue'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'

import './uni.promisify.adaptor'
Vue.config.productionTip = false

import LevitatedSphere from './components/levitated-Sphere/index.vue'
Vue.component('LevitatedSphere', LevitatedSphere)

App.mpType = 'app'
Vue.use(uView)
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif